package com.ruoyi.web.domain.devicedata;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 设备图片表
 * @author fwx
 * @since 2024-01-24 10:43:12
 */
@Data
@TableName("product_device_photo")
@ApiModel(value = "ProductDevicePhoto对象", description = "设备图片表")
public class DevicePhoto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("设备id")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty("附件ID")
    @TableField("attachment_id")
    private Long attachmentId;

    @ApiModelProperty("创建时间")
    @TableField("crt_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime crtTime;

    @TableField("is_deleted")
    private Boolean isDeleted;

    @ApiModelProperty("图片地址")
    @TableField(exist = false)
    private String picUrl;

    @ApiModelProperty("带绘制结果的图片地址")
    @TableField(exist = false)
    private String discernUrl;

    @ApiModelProperty(value = "预置点名称")
    @TableField("preset_name")
    private String presetName;

    @ApiModelProperty(value = "预置点名称")
    @TableField("description")
    private String description;

}
